import request from '@/utils/request'

// 查询一条
export function getOneArticle(menuId) {
  return request({
    url: `/system/frontAdmin/getOne/${menuId}`,
    method: 'get'
  })
}

// 保存一条
export function saveArticle(data) {
  return request({
    url: '/system/frontAdmin/saveArticle',
    method: 'post',
    data: data
  })
}

// 查询列表
export function listArticle(query) {
  return request({
    url: '/system/frontAdmin/listArticle',
    method: 'get',
    params: query
  })
}

// 删除一条
export function deleteArticle(id) {
  return request({
    url: '/system/frontAdmin/delete/' + id,
    method: 'delete'
  })
}
